<?php

namespace App\Api\Controllers;



use App\Api\Dao\ContentDao;
use App\Api\Dao\SourceContentDao;
use App\Api\Logic\SourceContentLogic;
use Illuminate\Http\Request;

class ContentController extends BaseController
{
    /**
     * 获取素材的列表
     * @return \Illuminate\Http\JsonResponse
     */
    public function getContentList(SourceContentLogic $sourceContentLogic,Request $request,ContentDao $contentDao){
        $data = $request->all();
        //$sourceContentLogic->getSourceList($data);
        $result =$contentDao->getContentList($data);
        return $this->success($result);
    }

    /**
     * @param ContentDao $contentDao
     * @return \Illuminate\Http\JsonResponse
     */
    public function getContentInfo(Request $request,ContentDao $contentDao){
        $data = $request->all();
        $result =$contentDao->getContentInfo($data);
        return $this->success($result);
    }
}
